<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>JSON</title>
    <script>
        //// 写 JSON，这个格式的字符串里面存一个员工数据 id 1 name zs age 18
        var json1='{"id":1,"name":"张三","age":18}';
        console.log(json1);
        // 写 JSON，这个格式的字符串里面存两个个员工数据 id 1 name zs age 18 id 2 name ls age 19
        var json2='[{"id":1,"name":"张三","age":18},{"id":2,"name":"李四","age":19}]'
        console.log(json2);
        // 写 JSON，这个格式的字符串里面存一个员工数据 id 1 name zs age 18 部门 id 5 name 开发部
        var json3='[{"id":1,"name":"张三","age":18,"department":{"id":5,"name":"开发部"}}]'
        console.log(json3);
    </script>
</head>
<body>

</body>
</html>